﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MenuItemTask
{
    class Program
    {
        static void Main(string[] args)
        {
            MenuItem[] menu = new MenuItem[7];
            menu[0] = new Beverage(2.70, 3.50, 6.75, "Expresso");
            menu[1] = new Beverage(2.99, 3.99, 4.99, "Capuccino");
            menu[2] = new Beverage(1.25, 2.25, 3.25, "House coffee");
            menu[3] = new Beverage(3.25, 4.25, 5.25, "Iced coffee");
            menu[4] = new Snack(1.50, "Muffin");
            menu[5] = new Snack(1.95, "Baget");
            menu[6] = new Snack(2.95, "Croissant");

            foreach (var item in menu)
            {
                item.PrintToConsole();
            }

        }
    }
}
